/////////////////////////////////////////////////////////////////////////////
// Name:        updatepanel.h
// Purpose:     
// Author:      Brant Young
// Modified by: 
// Created:     Wed Jun 20 23:07:21 2007
// RCS-ID:      
// Copyright:   (C) Victsoft 2007
// Licence:     GPL 2.0
/////////////////////////////////////////////////////////////////////////////

#ifndef _UPDATEPANEL_H_
#define _UPDATEPANEL_H_

class wxBoxSizer;



/*!
 * UpdatePanel class declaration
 */

class UpdatePanel: public wxPanel
{

public:
    /// Constructors
    UpdatePanel(wxWindow* p_parent);
    
    /// Destructor
    virtual ~UpdatePanel();
    

////@begin UpdatePanel member variables
    wxBoxSizer* p_root_sizer;
    wxStaticBox* p_auto_check_sizer_stc;
    wxStaticBoxSizer* p_auto_check_sizer;
    wxCheckBox* p_daodict_chkbox;
    wxCheckBox* p_addons_chkbox;
    wxStaticBox* p_updates_sizer_stc;
    wxStaticBoxSizer* p_updates_sizer;
    wxRadioButton* p_ask_rbtn;
    wxRadioButton* p_auto_rbtn;
    wxBoxSizer* p_warn_sizer;
    wxCheckBox* p_warn_chkbox;
    /// Control identifiers
    enum {
        ID_UPDATE_PANEL = 10033,
        ID_DAODICT_CHKBOX = 10000,
        ID_ADDONS_CHKBOX = 10005,
        ID_ASK_RBTN = 10001,
        ID_AUTO_RBTN = 10002,
        ID_WARN_CHKBOX = 10037
    };
////@end UpdatePanel member variables
    
    void init_cfg();
    
    bool set_cfg();
    
    void OnUpdateType(wxCommandEvent& event);
    
protected:    
    void InitEvents();
};

#endif
    // _UPDATEPANEL_H_
